﻿using log4net;
using SuperSocket.SocketBase;
using SuperSocket.SocketBase.Protocol;
using System;

namespace MeterSim.Socket {
    public class SocketSession: AppSession<SocketSession> {

        private static readonly ILog log = LogManager.GetLogger(typeof(SocketSession));

        protected override void HandleUnknownRequest(StringRequestInfo requestInfo) {
        }

        protected override void HandleException(Exception e) {
            log.Error("Application error: " + e.Message);
        }

        protected override void OnSessionClosed(CloseReason reason) {
            base.OnSessionClosed(reason);
        }
    }
}
